//package com.vast.system.config;
//
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//
//@Configuration
//public class WebAppConfig implements WebMvcConfigurer {
//
//	@Value("${file.uploadFolder}")//文件上传虚拟路径
//	private String path;
//
////	/**
////	 * 拦截器
////	 */
////	@Override
////	public void addInterceptors(InterceptorRegistry registry) {
////		InterceptorRegistration interceptorRegistration = registry.addInterceptor(new LoginInterceptor());
////
////		interceptorRegistration.addPathPatterns("/web/**");
////
////		super.addInterceptors(registry);
////	}
////
////	@Override
////	public void addResourceHandlers(ResourceHandlerRegistry registry) {
////		registry.addResourceHandler("/" + FileUtils.FileType.TEMPLETE.getValue() + "/**").addResourceLocations("file:///" + path + "/" + FileUtils.FileType.TEMPLETE.getValue() + "/");
////		registry.addResourceHandler("/" + FileUtils.FileType.TMP.getValue() + "/**").addResourceLocations("file:///" + path + "/" + FileUtils.FileType.TMP.getValue() + "/");
////		registry.addResourceHandler("/" + FileUtils.FileType.IMG.getValue() + "/**").addResourceLocations("file:///" + path + "/" + FileUtils.FileType.IMG.getValue() + "/");
////		registry.addResourceHandler("/" + FileUtils.FileType.CONTRACT.getValue() + "/**").addResourceLocations("file:///" + path + "/" + FileUtils.FileType.CONTRACT.getValue() + "/");
////		registry.addResourceHandler("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/");
////		registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
////	}
//
////	@Override
////    public void addInterceptors(InterceptorRegistry registry) {
////        registry.addInterceptor(authenticationInterceptor())
////                .addPathPatterns("/**");    // 拦截所有请求，通过判断是否有 @LoginRequired 注解 决定是否需要登录
////    }
////
////    @Bean
////    public AuthenticationInterceptor authenticationInterceptor() {
////        return new AuthenticationInterceptor();
////    }
//
//    /*@Override
//    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
//        argumentResolvers.add(currentUserMethodArgumentResolver());
//        super.addArgumentResolvers(argumentResolvers);
//    }*/
//
//
////
////    @Bean
////    public CurrentUserMethodArgumentResolver currentUserMethodArgumentResolver() {
////        return new CurrentUserMethodArgumentResolver();
////    }
////
////	@Override
////	public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
////		resolvers.add(currentUserMethodArgumentResolver());
////		WebMvcConfigurer.super.addArgumentResolvers(resolvers);
////	}
//
//}
